//
//  SpaceFirstTableViewCell.m
//  chatchatchat
//
//  Created by 小灰灰的pro on 16/3/26.
//  Copyright © 2016年 小灰灰. All rights reserved.
//

#import "SpaceFirstTableViewCell.h"
#import "UIImageView+WebCache.h"
@implementation SpaceFirstTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initLayout];
    }
    return self;
}

- (void)initLayout{
    self.bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, -150, [UIScreen mainScreen].bounds.size.width, 380)];
    self.bgImageView.image = [UIImage imageNamed:@"bgImage111"];
    [self.contentView addSubview:self.bgImageView];
    self.userImageView = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 70, 300, 60, 60)];
    self.userImageView.backgroundColor = [UIColor blackColor];
    [self.bgImageView addSubview:self.userImageView];
    self.userNameLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 280, 170, 200, 35)];
    self.userNameLabel.backgroundColor = [UIColor clearColor];
    self.userNameLabel.text = @"程序员";
    self.userNameLabel.textColor = [UIColor whiteColor];
    self.userNameLabel.textAlignment = NSTextAlignmentRight;
    self.userNameLabel.font = [UIFont systemFontOfSize:18];
    [self.contentView addSubview:self.userNameLabel];
    
}

@end
